<?php

class indexController extends UserController
{
	public function indexAction()
	{
		$h=date('H');
		if ($h<6){
			$this->hello='凌晨';
		}elseif ($h<11){
			$this->hello='上午';
		}elseif($h<14){
			$this->hello='中午';
		}elseif($h<19){
			$this->hello='下午';
		}else{
			$this->hello='晚上';
		}
		$this->newlist=M('archive')->where(array('category_id'=>21,'status'=>1))->limit(6)->order('top desc,id desc')->getlist();
		$this->display();
	}

	public function oldAction()
	{
		$this->display();
	}

	public function tplAction()
	{
		$this->display();
	}
}